import React, { useRef } from 'react'

export default function App() {
  const myref = useRef();
  return (
    <div>
        <input ref={myref} onInput={()=>{
            console.log(myref.current.value)
        }}></input>
    </div>
  )
}
